package com.goldmantis.alitrip.mapper;

import com.goldmantis.alitrip.pojo.SysDataPrivileges;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface SysDataPrivilegesMapper extends Mapper<SysDataPrivileges> {
    List<Map> getUserDataPrivilegesByUserId(@Param("userId") Long userId, @Param("systemId") Long systemId, @Param("orgName") String orgName);

    void permissionCopy(@Param("originUserId") long originUserId,@Param("targetUserId") long targetUserId);
}